package com.aosai.localtax.app;

import android.os.Bundle;
import android.view.MenuItem;

import pw.hais.app.AppBaseActivity;

/**
 * Created by hais1992 on 2016/1/16/016.
 */
public class BaseActivity extends AppBaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                finish();
                break;
        }
        return super.onOptionsItemSelected(item);
    }
}
